package com.stylefeng.guns.wx.common.persistence.model;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 支持的小说网站
 * </p>
 *
 * @author shaohaiting
 * @since 2018-03-19
 */
@TableName("wx_novel_web")
public class NovelWeb extends Model<NovelWeb> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
	@TableId(value = "id", type = IdType.INPUT)
	private String id;
    /**
     * 小说网站名称
     */
	@TableField("web_name")
	private String webName;
    /**
     * 小说网站地址
     */
	@TableField("web_url")
	private String webUrl;
    /**
     * 小说标题过滤规则
     */
	private String title;
    /**
     * 小说最新章节过滤规则
     */
	@TableField("latest_chapter")
	private String latestChapter;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 更新时间
     */
	@TableField("update_time")
	private Date updateTime;


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getWebName() {
		return webName;
	}

	public void setWebName(String webName) {
		this.webName = webName;
	}

	public String getWebUrl() {
		return webUrl;
	}

	public void setWebUrl(String webUrl) {
		this.webUrl = webUrl;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getLatestChapter() {
		return latestChapter;
	}

	public void setLatestChapter(String latestChapter) {
		this.latestChapter = latestChapter;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "NovelWeb{" +
			"id=" + id +
			", webName=" + webName +
			", webUrl=" + webUrl +
			", title=" + title +
			", latestChapter=" + latestChapter +
			", createTime=" + createTime +
			", updateTime=" + updateTime +
			"}";
	}
}
